<div class="modal-dialog" style="width:413px;margin-top: 150px">
    <div class="modal-content" style="min-height: 180px; max-height:320px">
        <div class="custom-modal-header">
            <div class="custom-modal-title">
                <div>新增民宿权限</div>
                <div data-dismiss="modal"></div>
            </div>
        </div>

        <div class="new-bnb-permission-body">
            <% console.log(model.attributes) %>
            <% _.each(collection.models, function(item){%>
                <div class="new-bnb-permission-item"> 
                    <label><%= item.attributes.bnbName %></label> 
                    <% if(item.attributes.enabled){%>
                        <input type="checkbox" data-bnbId="<%= item.attributes.bnbId%>" data-employeeid="<%= item.attributes.employeeid%>" class="bnbPermission" checked/> 
                    <% } else {%>
                        <input type="checkbox" data-bnbId="<%= item.attributes.bnbId%>" data-employeeid="<%= item.attributes.employeeid%>" class="bnbPermission"/> 
                    <% } %>
                </div>
            <% })%>

            <div class="errorMsg"></div>
            <button id="saveBtn">
                保存
            </button>
        </div>
    </div>
</div>